from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import TestReportViewSet, ReportDetailViewSet, DashboardViewSet, ReportGeneratorView

router = DefaultRouter()
router.register(r'reports', TestReportViewSet, basename='test-report')
router.register(r'report-details', ReportDetailViewSet, basename='report-detail')
router.register(r'dashboard', DashboardViewSet, basename='dashboard')

urlpatterns = [
    path('api/', include(router.urls)),
    path('api/generate/', ReportGeneratorView.as_view(), name='report-generate'),
]